#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>
#include <QIcon>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    //设置按钮样式
    ui->pushButton->setStyleSheet("color:red;");
    QIcon con(":/doge.png");
    ui->pushButton->setIcon(con);
    //设置图片大小
    ui->pushButton->setIconSize(QSize(50,50));
}

Widget::~Widget()
{
    delete ui;
}

